package com.lagou.demo.controller;

import com.lagou.edu.mvcframework.annotations.LagouController;
import com.lagou.edu.mvcframework.annotations.LagouRequestMapping;
import com.lagou.edu.mvcframework.annotations.LagouSecurity;

@LagouSecurity("zhangsan") // 需要zhangsan用户才可以访问
@LagouController
@LagouRequestMapping("/shiro2")
public class ShiroController2 {

    /**
     * URL: /shiro2/one?name=zhangsan
     */
    @LagouRequestMapping("/zhangsan")
    public String one(String name) {
        System.out.println("类+方法访问");
        return "shiro权限测试";
    }

}
